<?php
namespace app\index\controller;
use think\Controller;
use think\Cookie;
header("content-type:text/html;charset=utf8");
class About extends Controller{
    public function index()
    { if(Cookie::has("username")){
        $name=Cookie::get("username")." <a href='".url('Index/cancel')."'>注销</a>";
    }else{
        $name=' <a href="'.url('Index/login').'">登录&注册</a>';
    }
        return view("About/index",["username"=>$name]);
    }
}
